
database = {'account':'001','password':123456,'balance':1000000}

def money(database):
    if len(database)==0:
        print("there were nothing")
        return
    print("{0:<5}".format("balance"))
account = input("please enter your account:")
password = input("please enter your password:")

if account =="001" and password =="123456":
    while True:
        print("="*12,"欢迎来到白日梦银行","="*12)
        print("{0:1} {1:6} {2:5}".format(" ","1.查询余额","2.取款"))
        print("{0:1} {1:5} {2:5}".format(" ","3.转账","4.退卡"))
        print("="*42)
        key = input("请输入选择:")
        if key =="1":
            print(database['balance'])
            money(database)
            input("请按回车继续")
        if key =="2":
            print("Wake up醒醒,你怎么可能有呢？")
            input("按回车键继续")
        if key =="3":
            s_a={}
            s_a['account'] = input("请输入对方账户:")
            s_a['name']= input("请输入对方名字：")
            s_a['money'] = input("请输入转账金额：")
            
            print("转账成功")
            input("按回车键继续")
        if key=="4":
            print("请取走您的银行卡")
            break
        
            
        
else:
    print("your account or password are invalid")
    
